package gx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import gx.dao.WarehouseDao;
import gx.entity.Warehouse;
import gx.service.common.BaseService;

@Service
public class WarehouseService extends BaseService<Warehouse> {
	private WarehouseDao warehouseDao;

	public WarehouseDao getWarehouseDao() {
		return warehouseDao;
	}

	@Autowired
	public void setWarehouseDao(WarehouseDao warehouseDao) {
		this.warehouseDao = warehouseDao;
		super.setDao(this.warehouseDao);
	}

	public List<Warehouse> findByName(String name) {
		return warehouseDao.findByName(name);

	}

}